package com.wzz.contorller;

import com.wzz.pojo.User;
import com.wzz.service.UserService;
import com.wzz.vo.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author DarkClown
 * @date 2024-08-12 10:14
 * @project_name day0812-month
 * @parem
 **/
@RequestMapping("/open/open")
@RestController
public class OpenController {
    @Autowired
    UserService userService;


    @RequestMapping("/sendCode")
    private R sendCode(@RequestBody User user){
        return userService.sendCode(user);
    }

}
